package com.ktjy.service.impl;

import com.ktjy.entity.Flower;
import com.ktjy.mapper.FlowerMapper;
import com.ktjy.service.FlowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FlowerServiceImpl implements FlowerService {

    @Autowired
    FlowerMapper flowerMapper;

    @Override
    public List<Flower> select() {
        return flowerMapper.select();
    }

    @Override
    public int insert(Flower flower) {
        return flowerMapper.insert(flower);
    }

    @Override
    public int delete(int flowerId) {
        return flowerMapper.delete(flowerId);
    }
}
